import sys
sys.path.append("H:\\anacoda\\Lib\\site-packages")
import baostock as bs
import Stock
import Tool
import Algorithm as alGo
lg = bs.login()
codes=Tool.getCodeByTxtFile("C:\\Users\\imfeijiu\\Desktop\\code.txt") 
date=Tool.createDay(0)
head="code,date,pbMRQ,isST"
key=0
for code in codes:
    alGo.getPbLess4AndNotSt(Stock.getStockPd(code,head,date[0],date[1]))
    key=key+1
    print(key)
print("完成")
    
